package org.dairy.farms.model;

import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * Created by IntelliJ IDEA.
 * User: GDuggira
 * Date: 3 Jan, 2012
 * Time: 3:57:02 PM
 */
@javax.persistence.Table(name = "NOTES_TYPE")
@Entity
public class NotesType {

    public static final String PERSON_NOTES = "PERSON_NOTES";
    public static final String LIVESTOCK_NOTES = "LIVESTOCK_NOTES";
    public static final String LACTATION_NOTES = "LACTATION_NOTES";
    public static final String FEED_NOTES = "FEED_NOTES";
    public static final String REVENUE_NOTES = "REVENUE_NOTES";
    public static final String CHECKUP_NOTES = "CHECKUP_NOTES";
    public static final String EXPENSE_NOTES = "EXPENSE_NOTES";

    @javax.persistence.Column(name = "ID")
    @Id
    @GeneratedValue
    private Long id;

    @javax.persistence.Column(name = "NAME")
    private String name;

    @javax.persistence.Column(name = "DESCRIPTION")
    private String description;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Embedded
    private AuditInfo auditInfo = new AuditInfo();
    public AuditInfo getAuditInfo() {
        return auditInfo;
    }

    public void setAuditInfo(AuditInfo auditInfo) {
        this.auditInfo = auditInfo;
    }

}
